<?php

use Illuminate\Support\Facades\Route;

Route::get('/main', [\App\Http\Controllers\GameController::class, 'index'])->name('main.index');

Route::get('/main/game', [\App\Http\Controllers\GameController::class, 'game'])->name('main.game');

Route::post('/main/game/play', [\App\Http\Controllers\GameController::class, 'play'])->name('main.play');

Route::get('/main/statistics', [\App\Http\Controllers\GameController::class, 'info'])->name('main.info');

Route::get('/main/edit', [\App\Http\Controllers\GameController::class, 'edit'])->name('main.edit');

Route::patch('/main/update', [\App\Http\Controllers\GameController::class, 'update'])->name('main.update');

Route::get('/', [\App\Http\Controllers\WelcomeController::class, 'index'])->name('welcome.index');
